package com.dayuanit.booksystem.v3.net;

import com.dayuanit.booksystem.v3.net.common.DypRequest;

import java.util.Map;

public class DypServletRequest implements DypRequest {
    //功能编号
    private int functionNumber;
    private Map<String, String> params;

    public DypServletRequest(int functionNumber, Map<String, String> params) {
        this.functionNumber = functionNumber;
        this.params = params;
    }

    @Override
    public int getFuntionNumber() {
        return this.functionNumber;
    }

    @Override
    public Map<String, String> getParamMap() {
        return this.params;
    }

    @Override
    public String getParamValue(String key) {
        return this.params.get(key);
    }
}
